// import {history} from 'umi'
import {useNavigate} from 'umi'
import {Button} from 'antd'
const Login:React.FC=()=>{
    const nav=useNavigate()
    const goto=(e:React.MouseEvent)=>{
        e.preventDefault()
        //history.replace('/register')
        nav('/register')
        
    }
    return(
        <>
            <h1>登录</h1>
            <a href="#" onClick={(e)=>{goto(e)}}>没有账户，请注册</a>
            <Button type='primary'>测试</Button>
        </>
    )
}
export default Login